import VueRouter, { RouteConfig } from 'vue-router';
import LayoutRouter from '@/views/router'; // 全局布局

export const routes: RouteConfig[] = [
  {
    path: '/',
    name: 'Layout',
    redirect: '/desktop', // 重定向到子路由的desktop
    component: () => import(/* webpackChunkName: "layout" */'@/views/common/layout/index.vue'),
    children: LayoutRouter
  },
  // 登录页
  {
    path: '/login',
    name: 'Login',
    component: () => import(/* webpackChunkName: "login" */'@/views/common/login/index.vue'),
  }
];